#ifndef __sys_param_h_
#define __sys_param_h_

// From xv6-loongarch
#define MAXPROC      32     // maximum number of processes
#define MAXCPU        1     // maximum number of CPUs
#define NOFILE       16     // open files per process
#define NFILE       100     // open files per system
#define MAXINODE     50     // maximum number of active i-nodes
#define MAXDEV       10     // maximum major device number
#define ROOTDEV       1     // device number of file system root disk
#define MAXARG       32     // max exec arguments
#define MAXOPBLOCKS  10     // max # of blocks any FS op writes
#define LOGSIZE      (MAXOPBLOCKS*3)    // max data blocks in on-disk log
#define NBUF         (MAXOPBLOCKS*3)    // size of disk block cache
#define FSSIZE       1000   // size of file system in blocks
#define MAXPATH      128    // maximum file path name

// 调试模式 
#define DEBUG_MODE   1      // TODO: 目前未使用，用于控制是否 print 某些参数

// 求定长数组中的元素数量
#define NELEM(x) (sizeof(x) / sizeof((x)[0]))

#endif